package com.corelib.rxAndRetrofit;



import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by lenovo on 2016/12/27.
 */
public interface APIService {
    @FormUrlEncoded
    @POST("ver.do")
    Call<UpdateInfoBean> getUpdateInfo(@Field("cod") String cod,@Field("os") String os);

    @GET("ver.do?cod=98a35ce1ce0b454b9ab8f204c5bc0ebd&os=1")
    Call<UpdateInfoBean> getUpdateInfoByGet();

    @GET("ver.do?cod=98a35ce1ce0b454b9ab8f204c5bc0ebd&os=1")
    Observable<UpdateInfoBean> getUpdateInfoByRxjava();


}
